export const mock = () => {
  return new Promise<void>((resolve) => {
    import("./browser")
      .then(async ({ worker: mswWorker }) => {
        await mswWorker.start({
          onUnhandledRequest: "bypass",
          serviceWorker: {},
        });
      })
      .finally(() => {
        resolve();
      });
  });
};
